<div>

<a href="javascript:;;" onclick="sysres_file_download();" class="easyui-linkbutton" data-options="iconCls:'icon-redo'">下载</a>
<!-- <a href="javascript:;;" onclick="onLoadDown();" class="easyui-linkbutton" data-options="iconCls:'icon-redo'">下载2</a> -->
<div id="sysres_file_tree"></div>
</div>
<script type="text/javascript">
	function onLoadDown(){
		$('#sysres_file_tree').tree({
			url :'down_showFile.json'
		});
	}
	window.onload = onLoadDown();
	
	function sysres_file_download(){
		var node = $('#sysres_file_tree').tree('getSelected');
		if(node.state){
			$.messager.alert('','${action.getText('file.download.warning')}','warning');
			return;
		}
		window.open('down_fileDownload.json?path='+encodeURIComponent(node.id));
	}
</script>